package ext.tianma.model;

@SuppressWarnings({"cast", "deprecation", "unchecked"})
public abstract class _ERPQuantity extends wt.fc.WTObject implements java.io.Externalizable {
   static final long serialVersionUID = 1;

   static final java.lang.String RESOURCE = "ext.tianma.model.modelResource";
   static final java.lang.String CLASSNAME = ERPQuantity.class.getName();

   /**
    * 用户名
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public static final java.lang.String USER_NAME = "userName";
   static int USER_NAME_UPPER_LIMIT = -1;
   java.lang.String userName;
   /**
    * 用户名
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public java.lang.String getUserName() {
      return userName;
   }
   /**
    * 用户名
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public void setUserName(java.lang.String userName) throws wt.util.WTPropertyVetoException {
      userNameValidate(userName);
      this.userName = userName;
   }
   void userNameValidate(java.lang.String userName) throws wt.util.WTPropertyVetoException {
      if (USER_NAME_UPPER_LIMIT < 1) {
         try { USER_NAME_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("userName").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { USER_NAME_UPPER_LIMIT = 100; }
      }
      if (userName != null && !wt.fc.PersistenceHelper.checkStoredLength(userName.toString(), USER_NAME_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "userName"), java.lang.String.valueOf(java.lang.Math.min(USER_NAME_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "userName", this.userName, userName));
   }

   /**
    * 工单号
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public static final java.lang.String JOBS = "jobs";
   static int JOBS_UPPER_LIMIT = -1;
   java.lang.String jobs;
   /**
    * 工单号
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public java.lang.String getJobs() {
      return jobs;
   }
   /**
    * 工单号
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public void setJobs(java.lang.String jobs) throws wt.util.WTPropertyVetoException {
      jobsValidate(jobs);
      this.jobs = jobs;
   }
   void jobsValidate(java.lang.String jobs) throws wt.util.WTPropertyVetoException {
      if (JOBS_UPPER_LIMIT < 1) {
         try { JOBS_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("jobs").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { JOBS_UPPER_LIMIT = 100; }
      }
      if (jobs != null && !wt.fc.PersistenceHelper.checkStoredLength(jobs.toString(), JOBS_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "jobs"), java.lang.String.valueOf(java.lang.Math.min(JOBS_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "jobs", this.jobs, jobs));
   }

   /**
    * 成品料号
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public static final java.lang.String PART_NUMBER = "partNumber";
   static int PART_NUMBER_UPPER_LIMIT = -1;
   java.lang.String partNumber;
   /**
    * 成品料号
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public java.lang.String getPartNumber() {
      return partNumber;
   }
   /**
    * 成品料号
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public void setPartNumber(java.lang.String partNumber) throws wt.util.WTPropertyVetoException {
      partNumberValidate(partNumber);
      this.partNumber = partNumber;
   }
   void partNumberValidate(java.lang.String partNumber) throws wt.util.WTPropertyVetoException {
      if (PART_NUMBER_UPPER_LIMIT < 1) {
         try { PART_NUMBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("partNumber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { PART_NUMBER_UPPER_LIMIT = 300; }
      }
      if (partNumber != null && !wt.fc.PersistenceHelper.checkStoredLength(partNumber.toString(), PART_NUMBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "partNumber"), java.lang.String.valueOf(java.lang.Math.min(PART_NUMBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "partNumber", this.partNumber, partNumber));
   }

   /**
    * 成品视图
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public static final java.lang.String PART_VIEW = "partView";
   static int PART_VIEW_UPPER_LIMIT = -1;
   java.lang.String partView;
   /**
    * 成品视图
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public java.lang.String getPartView() {
      return partView;
   }
   /**
    * 成品视图
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public void setPartView(java.lang.String partView) throws wt.util.WTPropertyVetoException {
      partViewValidate(partView);
      this.partView = partView;
   }
   void partViewValidate(java.lang.String partView) throws wt.util.WTPropertyVetoException {
      if (PART_VIEW_UPPER_LIMIT < 1) {
         try { PART_VIEW_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("partView").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { PART_VIEW_UPPER_LIMIT = 100; }
      }
      if (partView != null && !wt.fc.PersistenceHelper.checkStoredLength(partView.toString(), PART_VIEW_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "partView"), java.lang.String.valueOf(java.lang.Math.min(PART_VIEW_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "partView", this.partView, partView));
   }

   /**
    * 子料料号
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public static final java.lang.String CHILD_NUMBER = "childNumber";
   static int CHILD_NUMBER_UPPER_LIMIT = -1;
   java.lang.String childNumber;
   /**
    * 子料料号
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public java.lang.String getChildNumber() {
      return childNumber;
   }
   /**
    * 子料料号
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public void setChildNumber(java.lang.String childNumber) throws wt.util.WTPropertyVetoException {
      childNumberValidate(childNumber);
      this.childNumber = childNumber;
   }
   void childNumberValidate(java.lang.String childNumber) throws wt.util.WTPropertyVetoException {
      if (CHILD_NUMBER_UPPER_LIMIT < 1) {
         try { CHILD_NUMBER_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("childNumber").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { CHILD_NUMBER_UPPER_LIMIT = 300; }
      }
      if (childNumber != null && !wt.fc.PersistenceHelper.checkStoredLength(childNumber.toString(), CHILD_NUMBER_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "childNumber"), java.lang.String.valueOf(java.lang.Math.min(CHILD_NUMBER_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "childNumber", this.childNumber, childNumber));
   }

   /**
    * 子料视图
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public static final java.lang.String CHILD_VIEW = "childView";
   static int CHILD_VIEW_UPPER_LIMIT = -1;
   java.lang.String childView;
   /**
    * 子料视图
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public java.lang.String getChildView() {
      return childView;
   }
   /**
    * 子料视图
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public void setChildView(java.lang.String childView) throws wt.util.WTPropertyVetoException {
      childViewValidate(childView);
      this.childView = childView;
   }
   void childViewValidate(java.lang.String childView) throws wt.util.WTPropertyVetoException {
      if (CHILD_VIEW_UPPER_LIMIT < 1) {
         try { CHILD_VIEW_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("childView").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { CHILD_VIEW_UPPER_LIMIT = 100; }
      }
      if (childView != null && !wt.fc.PersistenceHelper.checkStoredLength(childView.toString(), CHILD_VIEW_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "childView"), java.lang.String.valueOf(java.lang.Math.min(CHILD_VIEW_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "childView", this.childView, childView));
   }

   /**
    * 用量
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public static final java.lang.String QUANTITY = "quantity";
   static int QUANTITY_UPPER_LIMIT = -1;
   java.lang.String quantity;
   /**
    * 用量
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public java.lang.String getQuantity() {
      return quantity;
   }
   /**
    * 用量
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public void setQuantity(java.lang.String quantity) throws wt.util.WTPropertyVetoException {
      quantityValidate(quantity);
      this.quantity = quantity;
   }
   void quantityValidate(java.lang.String quantity) throws wt.util.WTPropertyVetoException {
      if (QUANTITY_UPPER_LIMIT < 1) {
         try { QUANTITY_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("quantity").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { QUANTITY_UPPER_LIMIT = 100; }
      }
      if (quantity != null && !wt.fc.PersistenceHelper.checkStoredLength(quantity.toString(), QUANTITY_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "quantity"), java.lang.String.valueOf(java.lang.Math.min(QUANTITY_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "quantity", this.quantity, quantity));
   }

   /**
    * 单位
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public static final java.lang.String UNIT = "unit";
   static int UNIT_UPPER_LIMIT = -1;
   java.lang.String unit;
   /**
    * 单位
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public java.lang.String getUnit() {
      return unit;
   }
   /**
    * 单位
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public void setUnit(java.lang.String unit) throws wt.util.WTPropertyVetoException {
      unitValidate(unit);
      this.unit = unit;
   }
   void unitValidate(java.lang.String unit) throws wt.util.WTPropertyVetoException {
      if (UNIT_UPPER_LIMIT < 1) {
         try { UNIT_UPPER_LIMIT = (java.lang.Integer) wt.introspection.WTIntrospector.getClassInfo(CLASSNAME).getPropertyDescriptor("unit").getValue(wt.introspection.WTIntrospector.UPPER_LIMIT); }
         catch (wt.introspection.WTIntrospectionException e) { UNIT_UPPER_LIMIT = 100; }
      }
      if (unit != null && !wt.fc.PersistenceHelper.checkStoredLength(unit.toString(), UNIT_UPPER_LIMIT, true))
         throw new wt.util.WTPropertyVetoException("wt.introspection.introspectionResource", wt.introspection.introspectionResource.UPPER_LIMIT,
               new java.lang.Object[] { new wt.introspection.PropertyDisplayName(CLASSNAME, "unit"), java.lang.String.valueOf(java.lang.Math.min(UNIT_UPPER_LIMIT, wt.fc.PersistenceHelper.DB_MAX_SQL_STRING_SIZE/wt.fc.PersistenceHelper.DB_MAX_BYTES_PER_CHAR)) },
               new java.beans.PropertyChangeEvent(this, "unit", this.unit, unit));
   }

   /**
    * ERP推送时间
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public static final java.lang.String PUSH_DATE = "pushDate";
   java.sql.Timestamp pushDate;
   /**
    * ERP推送时间
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public java.sql.Timestamp getPushDate() {
      return pushDate;
   }
   /**
    * ERP推送时间
    *
    * @see ext.tianma.model.ERPQuantity
    */
   public void setPushDate(java.sql.Timestamp pushDate) throws wt.util.WTPropertyVetoException {
      pushDateValidate(pushDate);
      this.pushDate = pushDate;
   }
   void pushDateValidate(java.sql.Timestamp pushDate) throws wt.util.WTPropertyVetoException {
   }

   public java.lang.String getConceptualClassname() {
      return CLASSNAME;
   }

   public wt.introspection.ClassInfo getClassInfo() throws wt.introspection.WTIntrospectionException {
      return wt.introspection.WTIntrospector.getClassInfo(getConceptualClassname());
   }

   public java.lang.String getType() {
      try { return getClassInfo().getDisplayName(); }
      catch (wt.introspection.WTIntrospectionException wte) { return wt.util.WTStringUtilities.tail(getConceptualClassname(), '.'); }
   }

   public static final long EXTERNALIZATION_VERSION_UID = -2786480967172929706L;

   public void writeExternal(java.io.ObjectOutput output) throws java.io.IOException {
      output.writeLong( EXTERNALIZATION_VERSION_UID );

      super.writeExternal( output );

      output.writeObject( childNumber );
      output.writeObject( childView );
      output.writeObject( jobs );
      output.writeObject( partNumber );
      output.writeObject( partView );
      output.writeObject( pushDate );
      output.writeObject( quantity );
      output.writeObject( unit );
      output.writeObject( userName );
   }

   protected void super_writeExternal_ERPQuantity(java.io.ObjectOutput output) throws java.io.IOException {
      super.writeExternal(output);
   }

   public void readExternal(java.io.ObjectInput input) throws java.io.IOException, java.lang.ClassNotFoundException {
      long readSerialVersionUID = input.readLong();
      readVersion( (ext.tianma.model.ERPQuantity) this, input, readSerialVersionUID, false, false );
   }
   protected void super_readExternal_ERPQuantity(java.io.ObjectInput input) throws java.io.IOException, java.lang.ClassNotFoundException {
      super.readExternal(input);
   }

   public void writeExternal(wt.pds.PersistentStoreIfc output) throws java.sql.SQLException, wt.pom.DatastoreException {
      super.writeExternal( output );

      output.setString( "childNumber", childNumber );
      output.setString( "childView", childView );
      output.setString( "jobs", jobs );
      output.setString( "partNumber", partNumber );
      output.setString( "partView", partView );
      output.setTimestamp( "pushDate", pushDate );
      output.setString( "quantity", quantity );
      output.setString( "unit", unit );
      output.setString( "userName", userName );
   }

   public void readExternal(wt.pds.PersistentRetrieveIfc input) throws java.sql.SQLException, wt.pom.DatastoreException {
      super.readExternal( input );

      childNumber = input.getString( "childNumber" );
      childView = input.getString( "childView" );
      jobs = input.getString( "jobs" );
      partNumber = input.getString( "partNumber" );
      partView = input.getString( "partView" );
      pushDate = input.getTimestamp( "pushDate" );
      quantity = input.getString( "quantity" );
      unit = input.getString( "unit" );
      userName = input.getString( "userName" );
   }

   boolean readVersion_2786480967172929706L( java.io.ObjectInput input, long readSerialVersionUID, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      if ( !superDone )
         super.readExternal( input );

      childNumber = (java.lang.String) input.readObject();
      childView = (java.lang.String) input.readObject();
      jobs = (java.lang.String) input.readObject();
      partNumber = (java.lang.String) input.readObject();
      partView = (java.lang.String) input.readObject();
      pushDate = (java.sql.Timestamp) input.readObject();
      quantity = (java.lang.String) input.readObject();
      unit = (java.lang.String) input.readObject();
      userName = (java.lang.String) input.readObject();
      return true;
   }

   protected boolean readVersion( ERPQuantity thisObject, java.io.ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      boolean success = true;

      if ( readSerialVersionUID == EXTERNALIZATION_VERSION_UID )
         return readVersion_2786480967172929706L( input, readSerialVersionUID, superDone );
      else
         success = readOldVersion( input, readSerialVersionUID, passThrough, superDone );

      if (input instanceof wt.pds.PDSObjectInput)
         wt.fc.EvolvableHelper.requestRewriteOfEvolvedBlobbedObject();

      return success;
   }
   protected boolean super_readVersion_ERPQuantity( _ERPQuantity thisObject, java.io.ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      return super.readVersion(thisObject, input, readSerialVersionUID, passThrough, superDone);
   }

   boolean readOldVersion( java.io.ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone ) throws java.io.IOException, java.lang.ClassNotFoundException {
      throw new java.io.InvalidClassException(CLASSNAME, "Local class not compatible: stream classdesc externalizationVersionUID="+readSerialVersionUID+" local class externalizationVersionUID="+EXTERNALIZATION_VERSION_UID);
   }
}
